//
//  PictureModel.m
//  Happy to chat
//
//  Created by lanou3g on 15/12/8.
//  Copyright © 2015年 LL. All rights reserved.
//

#import "PictureModel.h"

@implementation PictureModel
//容错处理
- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}
+ (instancetype)initWithDic:(NSDictionary *)dic{
    
    PictureModel *model = [PictureModel new];
    
    [model setValuesForKeysWithDictionary:dic];
    
    return model;
}
- (void)encodeWithCoder:(NSCoder *)aCoder{
    
    [aCoder encodeObject:self.wbody forKey:@"wbody"];
    [aCoder encodeObject:self.wpic_small forKey:@"wpic_small"];
    [aCoder encodeObject:self.wpic_middle forKey:@"wpic_middle"];
    [aCoder encodeObject:self.update_time forKey:@"update_time"];

    

}
- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder{
    if (self) {
        self.wbody = [aDecoder decodeObjectForKey:@"wbody"];
        self.wpic_small = [aDecoder decodeObjectForKey:@"wpic_small"];
        self.wpic_middle = [aDecoder decodeObjectForKey:@"wpic_middle"];
        self.update_time = [aDecoder decodeObjectForKey:@"update_time"];
    }
    return self;
}
@end
